package com.unionPay.utils;


public class Md5Util {

	
	 public static byte[] MD5(String source) {
			try {
				java.security.MessageDigest md = java.security.MessageDigest
						.getInstance("MD5");

				md.update(source.getBytes("utf-8"));
				byte tmp[] = md.digest(); 
				return tmp;

			} catch (Exception e) {
				e.printStackTrace();
				return null;
			}
			
		}
}
